package cn.mill.demo.open;

import java.io.Serializable;
import java.util.List;

import cn.mill.common.annotation.Property;

public class ResponseMessage<T> implements Serializable {
	
	private static final long serialVersionUID = -5322418673570890220L;
	@Property("code")
	private String code;
	@Property("message")
	private String message;
	@Property("result")
	private List<T> list;
	
	public String getCode() {
		return code;
	}
	
	public void setCode(String code) {
		this.code = code;
	}
	
	public String getMessage() {
		return message;
	}
	
	public void setMessage(String message) {
		this.message = message;
	}
	
	public List<T> getList() {
		return list;
	}
	
	public void setList(List<T> list) {
		this.list = list;
	}
	
	@Override
	public String toString() {
		return "ResponseMessage [code=" + code + ", message=" + message + ", list=" + list + "]";
	}
}
